<?php
class Tv_Arte_Nav_Iterator extends RecursiveArrayIterator
{
    /**
     * getComponentData
     * @return Tv_Arte_Nav_IComponentData
     */
    public function getComponentData()
    {
        $componentData = $this->current()->getComponentData();/* @var $componentData Tv_Arte_Nav_IComponentData */
        return $componentData;
    }
    /**
     * getChildren
     * @return Array
     */
    public function getChildren()
    {
        return $this->current()->getChildren();
    }
    /**
     * hasChildren
     * @return Boolean
     */
    public function hasChildren()
    {
        return $this->current()->hasChildren();
    }
    /**
     * getTabs
     * @param Integer $depth
     * @return Array(3)
     */
    public function getTabs($depth)
    {
        return Array(
            str_repeat("\t", $depth),
            str_repeat("\t", $depth + 1),
            str_repeat("\t", $depth + 2)
        );
    }
}